package com.tianji.learning.service;

import com.tianji.api.dto.remark.LikedTimesDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.entity.InteractionReply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.pojo.ReplyDTO;
import com.tianji.learning.pojo.ReplyPageQuery;
import com.tianji.learning.vo.ReplyVO;

import java.util.List;

/**
 * <p>
 * 互动问题的回答或评论 服务类
 * </p>
 *
 * @author xjs
 */
public interface IInteractionReplyService extends IService<InteractionReply> {

    void saveReply(ReplyDTO replyDTO);

    PageDTO<ReplyVO> queryReplyPage(ReplyPageQuery pageQuery, boolean b);

    /**
     * 收到了点赞服务的消息，更新点赞的数量
     * */
    void onLikeTimesChanged(List<LikedTimesDTO> dto);
}
